#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void f(int* p, int* q)
{
    int t;
    t = *p;
    *p = *q;
    *q = t;
}
int main()
{
    int m, n;
    scanf("%d %d", &m, &n);
    f(&m, &n);
    printf("%d %d", m, n);
    return 0;

}